package com.lipl.base.javase.designpattern.factory.abstractfactory;

/**
 * @Auther: 15541
 * @Date: 2020/10/24 11:16
 * @Description:
 */
public class TestAbstractFactory {

    public static void main(String[] args) {

        IFactory factoryA = new FactoryA();
        Product productA = factoryA.createProduct();
        Gift giftA = factoryA.createGift();

        System.out.println("productA name="+productA.getName()+",getPrice:"+productA.price()+",giftA name="+giftA.getGiftName());
    }
}

